package com.yuyu.shop.api.apimodel.order.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author
 * @version 1.0
 * @description: TODO
 * @date 2022/10/10 10:38
 */
@Data
public class OrderInfoVO implements Serializable {
    private Long shopId; //shopId

    private Long goodId; //skuId

    private String id;  //主键Id

    private String orderId; //订单唯一ID

    private String shopName; //商店名

    private String shopAddress; //商家地址

    private String shopPhone; //商家电话

    private String goodsName; //商品名

    private BigDecimal originPrice; //商品原价

    private BigDecimal realPrice; //商品实价

    private Integer goodsNum; //购买数量

    private String attribute; //具体参数 如256g内存 8g运行内存 双卡双待等

    private String specification; //具体什么规格 如 iPhone13 远峰蓝

    private Integer discountType; //优惠名称 1.优惠券 2.会员 3.混合优惠

    private BigDecimal reduceAccount; //优惠了多少

    private String discountDescribe; //优惠描述信息

    private String accountName; //用户名

    private String realName; //真实名字

    private String phone; //电话号码

    private Integer status; //订单状态

    private Integer orderType; //1.普通订单 2.团购订单 3.限购订单 4.秒杀订单

    private String receiveInfo; //收获信息

    private Long userId; //用户id

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;   //创建时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime; //修改时间

}
